package cate.game.role.farm.adventure.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBAdventure;
import cate.game.role.Role;
import cate.game.role.farm.adventure.Adventure;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "主线数据 の 返回")
public class AdventureDataResp implements MsgOutput {

    @NoteField(value = "主角【冒险】数据")
    public Adventure data;

    public AdventureDataResp(){}

    public AdventureDataResp(Role role) {
        this.data = role.getFarm().adventure;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBAdventure.ADVENTURE_DATA_RESP;
    }
}
